package com.heshuo.basic.dao;

import java.io.Serializable;
import java.util.List;

import com.heshuo.basic.page.PageUtil;

public interface IBaseDAO {
	public Object findByPrimaryKey(Serializable key) throws Exception;
	public List findByProperty(String propertyName, Object value) throws Exception;
	public List findByProperty(String propertyName, Object value,PageUtil pageUtil) throws Exception;
	public List findByPage(String queryString, PageUtil pageUtil) throws Exception;
	public List findByPage(String queryString) throws Exception;
	public List findByObject(Object o) throws Exception;
	public List findAll(PageUtil pageUtil) throws Exception;
	public List findAll() throws Exception;
	public void insert(Object o) throws Exception;
	public void delete(Object o) throws Exception;
	public void delete(Serializable key) throws Exception;
	public void update(Object o) throws Exception;
	public void saveOrUpdate(Object o) throws Exception;
	public int count(String hql) throws Exception;
}
